<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
  </head>

  <body>
    <div id="div_html"></div>

    <script id="html" type="text/x-jquery-tmpl">
      <div style="margin-bottom:10px;">
        <div>ID: ${id}</div>
        <div style="margin-left:10px;">NAME: {{= Name}}</div>
        <div>HANDLE:
          需要解析的数据内容：${htmlstring}
          解析后的数据内容{{html htmlstring}}
        </div>
      /div>
    </script>

    <script
      type="text/javascript"
      src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.min.js"
    ></script>
    <script type="text/javascript" src="./9/jquery.tmpl.min.js"></script>
    <script>
      $(function () {
        var user = {
          id: 'think8848',
          name: 'Joseph Chan',
          htmlstring: '<button>html</button>',
        }
        $('#html').tmpl(user).appendTo('#div_html')
      })
    </script>
  </body>
</html>
